]> dgit.raspbian.org Git - gnome-shell.git/commit
messageTray: Don't try to focus destroyed actor
authorSebastian Keller <skeller@gnome.org>
Mon, 27 Apr 2026 20:53:59 +0000 (22:53 +0200)
committerSebastian Keller <skeller@gnome.org>
Mon, 27 Apr 2026 21:22:09 +0000 (23:22 +0200)
commit4d760cae090ffb2f06301aff92229aaa4d0010f1
tree8a2253b3206efdc3f96296916ee4ff9c6386a23a
parent3647d29af714cf8cc3508d9c9b89b3de7159c55b
messageTray: Don't try to focus destroyed actor

When `ungrabFocus()` is called after hiding a notification, the previous
focus actor might have already been destroyed and trying to focus it
will trigger a gjs error.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/work_items/9190
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4197>
js/ui/messageTray.js